package loc.dd.service;
/**
*@author 作者：huyaqi
*@version 创作时间:2023年11月29日上午9:16:12
*
*/

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import loc.dd.entity.Abilities;
import loc.dd.mapper.AbilityMapper;

@Service
public class AbilityService {
	@Autowired
	AbilityMapper abilityMapper;
	
	public  List<Map<String, Object>> getnl(){
		return abilityMapper.getnl();
	}
	
	public int editnl(Abilities abilities) {
		return abilityMapper.editnl(abilities);
	}
	public int addnl(Abilities abilities) {
		return abilityMapper.addnl(abilities);
	}
	
	public int delnl(int id) {
		return abilityMapper.delnl(id);
	}
	public int checknl(int id) {
		return abilityMapper.checknl(id);
	}
	
	public int checkshifounl(String abilityname) {
		return abilityMapper.checkshifounl(abilityname);
	}
	
	public Abilities getonenl(int id) {
		return abilityMapper.getonenl(id);
	}
}
